package com.yanxu.startthread;

/**
 * @author 折戟沉沙铁未销
 * @version V1.0
 * @date 2024/7/21-2024
 * @Description: 不能两次调用 start 方法
 */
public class CantStartTwice {
    public static void main(String[] args) {
        Thread thread = new Thread(new Runnable() {
            public void run() {
                System.out.println("启动新的线程!!!");
            }
        });
        thread.start();
        thread.start();
    }
}